package com.kuzan.autocloud.secutiry.client;

import com.kuzan.autocloud.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * <p>Description: </p>
 *
 * @author kuzank
 */
@FeignClient(value = "form-client")
public interface FormFeignClientService {
    /**
     * 表单记录
     *
     * @param formid
     * @param recordid
     * @return
     */
    @GetMapping("/record/{formid}/{recordid}")
    Result record(@PathVariable("formid") String formid,
                  @PathVariable("recordid") String recordid);

    @GetMapping("/temp/record/{formid}/{recordid}")
    Result temprecord(@PathVariable("formid") String formid,
                      @PathVariable("recordid") String recordid);

    /**
     * 获取基础信息
     *
     * @param id
     * @return
     */
    @GetMapping(value = "/detail/{id}")
    Result<Map<String, Object>> detail(@PathVariable("id") String id);
}
